@extends('backend.layouts.app')

@section('content')
<div class="layui-card">
    <div class="layui-card-header layui-card-header-auto">
        @if($is_tags==true)
        企业标签列表
        @else
        行业管理
        @endif
    </div>
    <div class="layui-card-body">
        <div class="layui-row" style="margin-bottom:10px">
            <div class="layui-col-md9">
                <div class="layui-inline">
                    <input type="text" id="key" class="layui-input" placeholder="请输入内容进行查询">
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-sm" onclick="search()">搜索</button>
                </div>
            </div>
            <div class="layui-col-md3">
                <div class="layui-btn-group" style="float:right">
                    <a href="{{route('admin.base.industry.create',['is_tags'=>$is_tags])}}"
                        class="layui-btn layui-btn-sm">添加</a>
                </div>
            </div>
        </div>
        <table id="dataTable" lay-filter="dataTable">
            <script type="text/html" id="options">
                <div class="layui-btn-group">
                    <a class="layui-btn layui-btn-sm" lay-event="show">查看</a>
                    <a class="layui-btn layui-btn-sm" lay-event="edit">编辑</a>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" lay-event="del">删除</a>
                </div>

            </script>
            <script type="text/html" id="sort_options">
                <div class="layui-btn-group">
                    <a class="layui-btn layui-btn-sm" lay-event="up">上升</a>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" lay-event="down">下降</a>
                </div>

            </script>

        </table>
    </div>
</div>
@endsection

@section('script')
@if($is_tags==true)
@include('backend.base.industry._table')
@else
@include('backend.base.industry._treetable')
@endif
@endsection
